import request from '@/utils/request'
// 获取员工分页数据
export function getStaffPage(params) {
  return request({
    url: '/manager/business-hall/user/page',
    params
  })
}
// 获取省市区数据
export function getAreaData(parentId) {
  return request({
    url: 'manager/areas/children',
    params: { parentId }
  })
}
// 获取机构详情

export function getDetail(id) {
  return request({
    url: `/manager/business-hall/${id}`
  })
}
// 编辑机构信息

export function edit(data) {
  return request({
    url: '/manager/business-hall',
    method: 'post',
    data
  })
}
